import request from "@/request/request.ts";
import {submitOrderInterface} from "@/views/member/interface/interface.ts";

/* 获取就诊人的接口 */
export const getUserAPI = () => {
    return request({
        url: "/user/patient/auth/findAll",
        method: "GET"
    })
}

/* 获取挂号医生详细信息的接口 */
export const getHosDetailAPI = (id: string) => {
    return request({
        url: `/hosp/hospital/getSchedule/${id}`,
        method: "GET"
    })
}

/* 提交订单获取订单号的接口 */
export const submitOrderAPI = (params: submitOrderInterface) => {
    return request({
        url: `/order/orderInfo/auth/submitOrder/${params.hoscode}/${params.scheduleId}/${params.patientId}`,
        method: "POST"
    })
}
